<template>
	<view class="zuipageWrap uni-common-pb">
		测试keywords为:{{keywords}}
		
		<view class="">
			{{ajaxRes}}
		</view>
	</view>
</template>

<script>

import {ztest} from '@/util/api'

export default {
	data() {
		return {
			keywords: '',
			ajaxRes: null
		}
	},
	onLoad(e) {
		console.log(JSON.stringify(e))
		this.keywords = e.keywords;
		
		this.zinit();
	},
	methods: {
		async zinit () {
			let tpl_param = {
        start: 1,
        pageSize: 9999
      }
			let res = await ztest(tpl_param);
      res = this.zutil.formatAxiosData(res);
			this.ajaxRes = JSON.stringify(res);
		}
	}
}
</script>

<style>
</style>
